{include file="Public:header" /}
<div class="ibox-title">
    <h5 style="line-height: 30px;font-weight: bold;">编辑用户组</h5>
    <a href="{:url('auth/group')}" class="btn btn-sm btn-info" style="margin-left: 10px;">返回上一页</a>
</div>
<div class="ibox-content">
    <div id="form" class="form-horizontal m-t">
        <input id="id" name="id" type="hidden" value="{$group['id']}">
        <div class="form-group">
            <label class="col-sm-3 control-label">名称：</label>
            <div class="col-sm-6">
                <input id="title" name="title" type="text" class="form-control" value="{$group['title']}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态：</label>
            <div class="col-sm-6">
                <select class="form-control" name="status">
                    <option value="1" {if condition='$group.status eq 1'}selected{/if}>正常</option>
                    <option value="0" {if condition='$group.status eq 0'}selected{/if}>禁用</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-3">
                <button class="submit btn btn-primary">提交</button>
            </div>
        </div>
    </div>
</div>
{include file="Public:footer" /}
{include file="Public:formAjaxSubmit" /}
<script>
    formAjaxSubmit("{:url('Auth/groupEdit')}");
</script>
